/*
 * Project it.battlehorse.rcp.tools.commons
 * Created on Nov 18, 2005
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * A copy of the LGPL is available also at
 * http://www.gnu.org/copyleft/lesser.html
 * 
 */ 
package it.battlehorse.rcp.tools.commons.actors;

import it.battlehorse.rcp.tools.commons.Severity;

/**
 * A basic implementation for an execution status.
 * 
 * @author battlehorse
 * @since Nov 18, 2005
 * @param <T> the type for the execution data associated with this execution status.
 */
public class BasicActorExecutionStatus<T> implements IActorExecutionStatus<T> {
	
	/**
	 * The execution severity
	 */
	private Severity severity;
	
	/**
	 * The execution message
	 */
	private String message;
	
	/**
	 * The execution data.
	 */
	private T executionData;
	
	/**
	 * Creates a new instance of the class
	 *
	 */
	public BasicActorExecutionStatus() {
		this(null,null,null);
	}
	
	/**
	 * Creates a new configured instance of the class
	 * 
	 * @param message The execution message
	 * @param severity The execution severity
	 * @param executionData The execution data.
	 */
	public BasicActorExecutionStatus(String message,
									  Severity severity,
									  T executionData) {
		this.message = message;
		this.severity = severity;
		this.executionData = executionData;
		
	}

	public Severity getSeverity() {
		return severity;
	}

	public String getMessage() {
		return message;
	}

	public T getExecutionData() {
		return executionData;
	}

	/**
	 * @param executionData The executionData to set.
	 */
	public void setExecutionData(T executionData) {
		this.executionData = executionData;
	}

	/**
	 * @param message The message to set.
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @param severity The severity to set.
	 */
	public void setSeverity(Severity severity) {
		this.severity = severity;
	}
	
	

}
